using System;
using Taimila.Entify.Attributes;

namespace Taimila.Entify.UnitTests
{
	[Entity]
	public class EntityWithRegularExpressionValidator : Entity
	{
		[RegularExpressionValidator(@"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?")]
		[EntityProperty(PersistentName = "EmailAddress")]
		public string EmailAddress
		{
			get;
			set;
		}
	}
}
